package wnxy.wn44.shopwn.advice;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import wnxy.wn44.shopwn.utils.Result;


@ControllerAdvice
public class GlobalExceptionHandler {

    @ExceptionHandler(Exception.class)
    public Result delailOtherException(Exception e){
        return Result.error().data("Exception",e);
    }
}
